class ReportEntity {
//ID(暂时无用)
  String id = "";
  //标题
  String title = "";
  //内容
  String detail = "";
  //发布人
  String deployer = "";
  //发布日期
  String deployDate = "";

  ReportEntity(
      {this.id, this.title, this.detail, this.deployer, this.deployDate});

  ReportEntity.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    title = json['title'];
    detail = json['detail'];
    deployer = json['deployer'];
    deployDate = json['deployDate'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['title'] = this.title;
    data['detail'] = this.detail;
    data['deployer'] = this.deployer;
    data['deployDate'] = this.deployDate;
    return data;
  }
}
